Skip to content

fix: clippy warning in dstack-types#459

Merged
kvinwang merged 1 commit into
masterfrom
fix/clippy-warning
Jan 25, 2026
Merged

fix: clippy warning in dstack-types#459
kvinwang merged 1 commit into
masterfrom
fix/clippy-warning

Conversation

@kvinwang

Copy link
Copy Markdown
Collaborator

Summary

Fix clippy::manual_pattern_char_comparison warning by using a char array instead of a closure.

// Before
.split_once(|c| c == '-' || c == '+')

// After
.split_once(['-', '+'])

This fixes the CI failure on master.

Fix clippy::manual_pattern_char_comparison warning
@kvinwang
kvinwang enabled auto-merge (squash) January 25, 2026 09:52
@kvinwang
kvinwang merged commit 0f08864 into master Jan 25, 2026
11 checks passed
@kvinwang
kvinwang deleted the fix/clippy-warning branch January 26, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant